<%@page pageEncoding="utf-8" contentType="text/html; charset=utf-8" %>
<%@ include file="/admin/include/init_admin.jsp" %>
<%@ page import="com.welfare.admin.call.*" %>
<%
	String sort_col				= StringUtil.nvl(request.getParameter("sort_col"), "counsel_date||counsel_id");
	String sort_asc				= StringUtil.nvl(request.getParameter("sort_asc"), "desc");
	
	String counsel_path			= StringUtil.nvl(request.getParameter("counsel_path"));
	String counsel_date_from	= StringUtil.nvl(request.getParameter("counsel_date_from"));
	String counsel_date_to		= StringUtil.nvl(request.getParameter("counsel_date_to"));
	String reg_user				= StringUtil.nvl(request.getParameter("reg_user"));
	String customer_name		= StringUtil.nvl(request.getParameter("customer_name"));
	String birth_date			= StringUtil.nvl(request.getParameter("birth_date"));
	String hp_no				= StringUtil.nvl(request.getParameter("hp_no"));
	String counsel_kind		= StringUtil.nvl(request.getParameter("counsel_kind"));
	String counsel_part		= StringUtil.nvl(request.getParameter("counsel_part"));
	String alarm_code			= StringUtil.nvl(request.getParameter("alarm_code"));
	
	
	HashMap infos = new HashMap();
	infos.put("use_yn", "Y");
	infos.put("sort_col", sort_col);
	infos.put("sort_asc", sort_asc);
	infos.put("counsel_path", counsel_path);
	infos.put("counsel_date_from", counsel_date_from);
	infos.put("counsel_date_to", counsel_date_to);
	infos.put("reg_user", reg_user);
	infos.put("customer_name", customer_name);
	infos.put("birth_date", birth_date);
	infos.put("hp_no", hp_no);
	infos.put("counsel_kind", counsel_kind);
	infos.put("counsel_part", counsel_part);
	infos.put("alarm_code", alarm_code);
	


	CallDAO dao 	= new CallDAO();
	HashList list 	= dao.selectCounselList(infos);


	for (int i = 0; i < list.size(); i++) {
%>
	<tr height="26px" counsel_id="<%= list.get("counsel_id",i) %>">
		<td class="c blx"><%= list.get("counsel_path", i) %></td>
		<td class="c"><%= StringUtil.toDate(list.get("counsel_date", i),".") %></td>
		<td class="c"><%= list.get("customer_name", i) %></td>
		<td><%= list.get("counsel_kind1", i) %></td>
		<td><%= list.get("counsel_kind2", i) %></td>
		<td><%= list.get("counsel_kind3", i) %></td>
		<td><%= list.get("service_name", i) %></td>
		<td class="c"><%= list.get("counseller", i) %></td>
		<td class="c brx"><%= list.get("hp_no", i) %></td>
	</tr>
<%
	}
%>
						
